home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2002-03-10 | 1.6 KB | 69 lines |
- "FILE"="Xteq Systems X-Setup Plugin 6.0"
- "TYPE"="6"
- "COUNT"="2"
- "UIPATH"="Internet\Instant Messaging\Windows Messenger\System"
- "NAME"="Allow Run Options"
- "VERSION"="1.00"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Allow Windows Messenger to be run"
- "TEXT 2"="Allow Windows Messenger to be run on start-up"
- "DESCRIPTION 1"="These options allow you to stop Windows/MSN Messenger if you want to."
- "DESCRIPTION 2"="Please note that these settings are system-wide, means they affect all users of this computer."
- "AUTHOR"="Xteq Systems"
- "CONTACTURL"="http://www.xteq.com"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"="Thanks to "Kelly" <kelly@mvps.org> for the settings"
-
-
- sP="HKLM\SOFTWARE\Microsoft\MessengerService\"
- sV1="HKLM\SOFTWARE\Policies\Microsoft\Messenger\Client\PreventRun"
- sV2="HKLM\SOFTWARE\Policies\Microsoft\Messenger\Client\PreventAutoRun"
-
-
- Sub Plugin_Initialize
- ' if RegPathExists(sP) then
- i=RegReadValue(sV1)
- if i<>"1" then SetUiElement 1,true
-
- i=RegReadValue(sV2)
- if i<>"1" then SetUiElement 2,true
-
- ' else
- ' Call Disable()
- ' end if
- End Sub
-
-
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
-
-
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- b=GetUIElement(1)
- if b=true then
- if RegValueExists(sV1) then RegDeleteValue(sV1)
- else
- Call RegWriteValue(sV1,"1",2)
- end if
-
-
- b=GetUIElement(2)
- if b=true then
- if RegValueExists(sV2) then RegDeleteValue(sV2)
- else
- Call RegWriteValue(sV2,"1",2)
- end if
-
-
-
- Call Logoff()
- End Sub
-
-
- Sub Plugin_Terminate
- End Sub
-
-
-
-